import { GameDefConfig } from "../../../resource/GameDefConfig";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ToolTipsManager } from "../../../../../com/mui/manager/ToolTipsManager";
import { TipRender } from "../tip/TipRender";
import { ImagesConst } from "../../../resource/ImagesConst";
import { DefInfo } from "../../../resource/info/DefInfo";
type int = number;
//class RewardItem
    
    export  class RewardItem /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.bgBitmap = new Object /* flash.display.Bitmap */();
            this.addChild(this.bgBitmap);
            return;
        }

        public get eventType(): int
        {
            return this.typeid;
        }

        public set eventType(arg1: int)
        {
            this.typeid = arg1;
            this.eventTypeDef = GameDefConfig.instance.getLGXBEventTypeInfo(this.typeid);
            this.bgBitmap.bitmapData = GlobalClass.getBitmapData(this.eventTypeDef.text1);
            ToolTipsManager.register(this, TipRender, this.eventTypeDef);
            return;
        }

        public static /* const */imgUrl: Array<any>=["", ImagesConst.LGXB_item1, ImagesConst.LGXB_item2, ImagesConst.LGXB_item3, ImagesConst.LGXB_item4, ImagesConst.LGXB_item5];

        /* internal */ /* var */typeid: int;

        /* internal */ /* var */bgBitmap: Object /* flash.display.Bitmap */;

        /* internal */ /* var */eventTypeDef: DefInfo;
    }
